import { useWindowStore } from "@/store/window"

// 将敞口指定函数
const windowStore = useWindowStore()
export const useSetWinTop = (wid: number) => {
  windowStore.winIndex += 1
  const index = windowStore.winConfigs.findIndex((item) => item.wid === wid)
  windowStore.winConfigs[index].zIndex = windowStore.winIndex
  return index
}
